import {getRequest, postRequest} from "@/api/axios";

export const doGetMenuByPage = (pageNum,pageSize)=>getRequest('menu/getMenus',{pageNum,pageSize});

export const doGetMenuByName = (name)=>getRequest('menu/getMenusByName',{name});

export const doGetAddMenu = (id,typeCode)=>getRequest('menu/getAddMenu',{id,typeCode});

export const doAddMenu = (menu)=>postRequest('menu/addMenus',menu);

export const doUpdateMenu = (menu)=>postRequest('menu/updateMenu',menu);

export const doDeleteMenu = (id)=> getRequest('menu/deleteMenus',{id})

export const doGetMenus = ()=>getRequest('menu/getAllMenus',{});

export const doGetMenuByDic = (did)=>getRequest('menu/getMenuByDic',{did});
